<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>鼠标经过展示</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        li{
            list-style-type: none;
        }
        #box{
            width: 360px;
            padding-top: 360px;
            margin: 100px auto;
            border: 1px solid #ccc;
            overflow: hidden;
            background: url(images/01big.jpg) no-repeat;
        }
        #box ul{
            overflow: hidden;
            border: 1px solid #ccc;
        }
        #box li{
            float: left;
        }
    </style>
    <script>
        window.onload = function(){
            var box = document.getElementById("box");
            function showMe(obj,pic){
                var obj = document.getElementById(obj);
                obj.onmouseover = function(){
                    box.style.backgroundImage = pic;
                }
            }
            showMe("li01","url(images/01big.jpg)");
            showMe("li02","url(images/02big.jpg)");
            showMe("li03","url(images/03big.jpg)");
            showMe("li04","url(images/04big.jpg)");
            showMe("li05","url(images/05big.jpg)");
        }
    </script>
</head>
<body>
<div id="box">
    <ul>
        <li id="li01"><img src="images/01.jpg"></li>
        <li id="li02"><img src="images/02.jpg"></li>
        <li id="li03"><img src="images/03.jpg"></li>
        <li id="li04"><img src="images/04.jpg"></li>
        <li id="li05"><img src="images/05.jpg"></li>
    </ul>
</div>
</body>
</html>